package com.woniu.liuzhougov.authorityControl.service;

import com.woniu.liuzhougov.authorityControl.pojo.User;

import java.util.List;

/**
 * @version 1.0
 * @Author zhuxinpan
 * @ClassName UserService
 * @Description 提供UserService
 * @Date 2019/4/19 15:16
 */
public interface UserService {

    User getUserByLoginName(String userLoginName);

    List<User> listUser(User user, Integer currentPage, Integer pageSize);

    int updatePassByUserId(User user);

    //Item 定义
    Integer getUserIdByUserName(String addItemFounder);

    int updateDepartmentByUserId(User user);

    int updateUserStatusByUserId(User user);

    User getUserByUserId(Integer userId);

    User getUserDetailByUserId(Integer userId);

    int countLoginNameNumber(User user);

    int updateUserDetails(User user);

    List<User> listUserByDepartmentId(Integer departmentId);

    /**
     * @param user
     * @return int
     * @author zhuxinpan
     * @date 2019/4/28 13:01
     * @description 添加用户
     */
    int insertUser(User user);

    /**
     * @param departmentId
     * @return int
     * @author zhuxinpan
     * @date 2019/4/29 0:58
     * @description 根据部门id统计人数
     */
    int countRecordByDepartmentId(Integer departmentId);
}
